package com.xjc.business.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 新闻表
 * @TableName school_news
 */
@TableName(value ="school_news")
@Data
public class SchoolNews implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 发布人
     */
    private Integer pulishId;

    /**
     * 类型(1:校 2:院)
     */
    private Integer type;

    /**
     * 标题
     */
    private String title;
    private String maskPic;

    /**
     * 内容
     */
    private String content;

    /**
     * 阅读数
     */
    private Integer readNum;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}